package com.crm.service.Impl;

import com.crm.mapper.orderMapper;
import com.crm.pojo.Order;
import com.crm.service.orderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class orderServiceImpl implements orderService {
    @Autowired
    private orderMapper mapper;
    @Override
    public boolean save(Order order) {
        return mapper.addOrder(order);
    }

    @Override
    public List<Order> queryAll() {
        return mapper.selectAll();
    }

    @Override
    public boolean removeOne(int oid) {
        return mapper.deleteByOid(oid);
    }
}
